<template>
  <page-view>
    <top-bar :title="title"></top-bar>
    <page-content class="p-details">
      <iframe class="iframe" v-if="src" :src="src"></iframe>
    </page-content>
  </page-view>
</template>

<script>
import TopBar from '@/components/TopBar';
import PageView from '@/components/PageView';
import PageContent from '@/components/PageContent';

export default {
  components: {
    TopBar,
    PageView,
    PageContent
  },
  data() {
    return {
      src: ""
    }
  },
  created(){
    debugger
    this.title = this.$route.params.title;
    this.src = this.$route.params.content;
  }
}
</script>
<style lang="scss" scoped>
  .iframe{
    width: 100%;
    height: 100%;
    border: none;
    margin: 0;
    padding: 0;
    background-color: #fff;
  }
</style>
